package com.example.common.tools;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 全局变量
 */
public class AppVariable {
    //用户 session key
    public static final String USER_SESSION_KEY = "USER_SESSION_KEY";

    //每页显示最大文章数
    public static final int PSIZE = 4;

    //用户账号冻结时间(单位：秒)
    public static final int FREEZE_TIME = 10000;

    //本地: 验证码图片保存路径
    public static final String IMG_CHECK = "D:\\\\code Repositories\\\\Gitee\\\\ssm-project\\\\mycnblog-ssm\\\\upload\\\\line.png";
    //本地: 头像保存绝对路径(absolute)
    public static final String IMG_PATH_ABSOLUTE = "D:\\code Repositories\\Gitee\\ssm-project\\mycnblog-ssm\\upload\\";

//    //todo: 云服务器头像保存路径
//    public static final String IMG_PATH_ABSOLUTE = "/root/cyk/project/mycnblog/upload/";
//    //todo: 云服务器验证码图片保存路径
//    public static final String IMG_CHECK = "/root/cyk/project/mycnblog/upload/line.png";

    //头像保存相对路径(relative)
    public static final String IMG_PATH_RELATIVE = "/upload/";

    //线程池优化创建销毁线程
    public static ExecutorService threadPool = Executors.newCachedThreadPool();

}
